package cn.jcby.app.excpt;

import lombok.Data;

/**
 * @author: lihaotian
 * @since: 2023/12/7 11:28
 * @description
 **/
@Data
public class MSException extends RuntimeException{

    private static final long serialVersionUID = 1L;
    private String msg;
    private int code = 500;

    public MSException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public MSException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public MSException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public MSException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }

}
